﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Web.Mvc; //allows for hiddenfield web/html properties

namespace BaseballGame.Models
{
	public class Player 
	{
        public int Id { get; set; }

        [Display(Name = "Player Name")]
        public string player_name { get; set; }

        public int positionId { get; set; }
        public positions position { get; set; }

        [Display(Name = "Speed")]
        public int speed { get; set; }

        [Display(Name = "Power")]
        public int power { get; set; }

        [Display(Name = "Hitting Chance")]
        public int hitting_chance { get; set; }

        [Display(Name = "At Bat")]
        public int at_bat { get; set; }

        [Display(Name = "Runs")]
        public int runs { get; set; }

        [Display(Name = "Hits")]
        public int hits { get; set; }

        [Display(Name = "Runs Batted In")]
        public int runs_batted_in { get; set; }

        [Display(Name = "Home Runs")]
        public int home_runs { get; set; }

        [Display(Name = "Balls On Balls")]
        public int balls_on_balls { get; set; }

        [Display(Name = "Strike Outs")]
        public int strike_outs { get; set; }

        [Display(Name = "Stolen Bases")]
        public int stolen_bases { get; set; }

        [Display(Name = "Left On Base")]
        public int left_on_base { get; set; }

        [Display(Name = "Fielding")]
        public int fielding { get; set; }

        [Display(Name = "Batting Average")]
        public double batting_avg { get; set; }

        [Display(Name = "Pitching")]
        public int pitching { get; set; }

        [Display(Name = "Innings Pitched")]
        public double innings_pitched { get; set; }

        [Display(Name = "Runs Allowed")]
        public int runs_allowed { get; set; }

        [Display(Name = "Earned Runs Allowed")]
        public int earned_runs_allowed { get; set; }

        [Display(Name = "Home Runs Allowed")]
        public int home_runs_allowed { get; set; }

        [Display(Name = "Walks Hit By Ip")]
        public double walks_hit_by_ip { get; set; }

        [Display(Name = "Earned Runs Avg")]
        public double earned_runs_average { get; set; }

        [HiddenInput(DisplayValue = false)]  //havent updated the controller for it
        public int teamId { get; set; }


	}

}